cmake_minimum_required(VERSION 3.5)


add_compile_options(-std=c++11 -g)


aux_source_directory(./src SOURCES)

include_directories(./src)



add_library(ethmcore ${SOURCES})
target_link_libraries(ethmcore)




add_executable(test_ethmcore test/test.cpp ${HEADERS})
target_link_libraries(test_ethmcore ethmcore pthread)

add_executable(gen_data test/gen_data.cpp ${HEADERS})
target_link_libraries(gen_data ethmcore pthread)

add_executable(calc_hash test/calc_hash.cpp ${HEADERS})
target_link_libraries(calc_hash ethmcore pthread)